﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Domain.Process_Procedures
{
    /// <summary>
    /// 工序分类实体
    /// </summary>
    [Table("processcategorymodel")]
    public class ProcessCategoryModel:BaseEntity
    {
        /// <summary>
        /// 工序分类编号
        /// </summary>
        [Required]
        [MaxLength(50)]
        public string CategoryCode { get; set; }
        /// <summary>
        /// 工序分类名称
        /// </summary>
        [Required]
        [MaxLength(100)]
        public string CategoryName { get; set; }

        /// <summary>
        /// 排序
        /// </summary>
        public int SortOrder { get; set; } = 1;
        /// <summary>
        /// 状态
        /// </summary>
        [Required]
        public bool IsActive { get; set; } = true;
        /// <summary>
        /// 备注
        /// </summary>
        [MaxLength(500)]
        public string? Remarks { get; set; }

    }
}
